// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import store from './store'                   // 引入
import settings  from './settings'
import '../static/css/style.css'                // 设置全局css样式
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import axios from 'axios'


Vue.use(ElementUI);
Vue.config.productionTip = false;
Vue.prototype.$settings = settings;             //用圆形链将settings加入到vue对象中
Vue.prototype.$axios = axios;
// axios.defaults.withCredentials = false;

/* eslint-disable no-new */
// vue-video播放器
require('video.js/dist/video-js.css');
require('vue-video-player/src/custom-theme.css');
import VueVideoPlayer from "vue-video-player"
Vue.use(VueVideoPlayer);


new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  template: '<App/>'
})
